package string;

public class SubstringDemo {
    public static void main(String[] args) {
        String a ="www.tedu.com";
        String b=a.substring(4,8);
        System.out.println(b);
         b=a.substring(4);
        System.out.println(b);
    }
}
